package org.cloudie.docs.editor.client.commands.generic;

import org.cloudie.docs.editor.client.commands.Command;

public class CurrentDocumentRefreshCommand extends Command {

  public final static int serialUid = 113;
  
  protected boolean executeInBackground = true;
  protected Command continueCommand;
  
  public CurrentDocumentRefreshCommand(boolean executeInBackground,
	    Command continueCommand) {
	super("Refresh current document.");
	this.executeInBackground = executeInBackground;
	this.continueCommand = continueCommand;
  }
  
  @Override
  public int getCommandId() {
    return serialUid;
  }

  public Command getContinueCommand() {
    return continueCommand;
  }

  public void setContinueCommand(Command continueCommand) {
    this.continueCommand = continueCommand;
  }

  public boolean isExecuteInBackground() {
    return executeInBackground;
  }

  public void setExecuteInBackground(boolean executeInBackground) {
    this.executeInBackground = executeInBackground;
  }
 
}
